﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using Core.DatabaseHelpers;

namespace Core.Interfaces
{   
    [Table("district")]
    public interface IDistrict:IDomainObject
    {
        [Column("district_id", ColumnAttribute.KeyType.Auto, true)]
        [Browsable(false)]
        int DistrictId { get; set; }

        [DisplayName("Название района")]
        [Column("name")]
        string Name { get; set; }

        [Column("district_id",true,false,"buildings")]
        List<IBuilding> Buildings { get; set; }
    }
}
